home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / Servers.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  2.8 KB  |  105 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Servers.a
  3. ;
  4. ;    Contains:    Server Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 8
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__SERVERS__') = 'UNDEFINED' THEN
  19. __SERVERS__ SET 1
  20.  
  21.     IF &TYPE('__CODEFRAGMENTS__') = 'UNDEFINED' THEN
  22.     include 'CodeFragments.a'
  23.     ENDIF
  24.     IF &TYPE('__KERNEL__') = 'UNDEFINED' THEN
  25.     include 'Kernel.a'
  26.     ENDIF
  27.     IF &TYPE('__FILEMANAGERTYPES__') = 'UNDEFINED' THEN
  28.     include 'FileManagerTypes.a'
  29.     ENDIF
  30.     IF FOR_SYSTEM8_PREEMPTIVE THEN
  31.  
  32.  
  33.  
  34. kCreateServerResType            EQU        'srvr'
  35. kCreateServerResID                EQU        0
  36. ; typedef OptionBits                     CreateServerOptions
  37.  
  38.  
  39. kServerReservesLowMem            EQU        $00000001            ; Cannot be enabled with kServerIsPrivileged
  40. kServerIsPrivileged                EQU        $00000002            ; Cannot be enabled with kServerReservesLowMem
  41. kCreateServerForLookup            EQU        $00000004
  42. kCreateServerAtStartup            EQU        $00000008
  43. CreateServerDescriptor    RECORD 0
  44. createOptions             ds.l    1                ; offset: $0 (0)
  45. name                     ds.l    1                ; offset: $4 (4)
  46. taskOptions                 ds.l    1                ; offset: $8 (8)
  47. stackSize                 ds.l    1                ; offset: $C (12)
  48. serverName                 ds        Str63            ; offset: $10 (16)
  49. sizeof                     EQU *                    ; size:   $50 (80)
  50.                         ENDR
  51. ; typedef struct CreateServerDescriptor * CreateServerDescriptorPtr
  52.  
  53. ;
  54. ; extern OSStatus CreateServer(FSObjectRef fileRef_t, const KernelNotification *deathNotification_i, Duration timeout_i, Str63 serverName_o, ServerID *server_o, void **refcon_o)
  55. ;
  56.     IF GENERATINGCFM THEN
  57.         IMPORT_CFM_FUNCTION CreateServer
  58.     ENDIF
  59.  
  60. ;
  61. ; extern OSStatus CreateServerAsync(FSObjectRef fileRef_t, const KernelNotification *deathNotification_i, const KernelNotification *asyncNotification_i, Str63 serverName_o, ServerID *server_o, void **refcon_o)
  62. ;
  63.     IF GENERATINGCFM THEN
  64.         IMPORT_CFM_FUNCTION CreateServerAsync
  65.     ENDIF
  66.  
  67. ;
  68. ; extern OSStatus RegisterServer(FSObjectRef fileRef_t, Str63 serverName_o)
  69. ;
  70.     IF GENERATINGCFM THEN
  71.         IMPORT_CFM_FUNCTION RegisterServer
  72.     ENDIF
  73.  
  74. ;
  75. ; extern OSStatus DeregisterServer(ConstStr63Param serverName_t)
  76. ;
  77.     IF GENERATINGCFM THEN
  78.         IMPORT_CFM_FUNCTION DeregisterServer
  79.     ENDIF
  80.  
  81. ;
  82. ; extern OSStatus LookupServer(ConstStr63Param serverName_t, Duration timeout_i, ServerID *server_o, void **refcon_o)
  83. ;
  84.     IF GENERATINGCFM THEN
  85.         IMPORT_CFM_FUNCTION LookupServer
  86.     ENDIF
  87.  
  88. ;
  89. ; extern OSStatus LookupServerAsync(ConstStr63Param serverName_t, const KernelNotification *asyncNotification_i, ServerID *server_o, void **refcon_o)
  90. ;
  91.     IF GENERATINGCFM THEN
  92.         IMPORT_CFM_FUNCTION LookupServerAsync
  93.     ENDIF
  94.  
  95. ;
  96. ; extern OSStatus ServerCreated(ServerID server_t, void *refcon_i)
  97. ;
  98.     IF GENERATINGCFM THEN
  99.         IMPORT_CFM_FUNCTION ServerCreated
  100.     ENDIF
  101.  
  102.     ENDIF
  103.     ENDIF ; __SERVERS__ 
  104.  
  105.